var userName = process.argv[2];
var pwd = process.argv[3];
var str = "userName:" + userName + " pwd:" + pwd;
var buf1 = Buffer.from(str);//将字符串转换成buffer,默认utf-8的编码方式
var str1 = buf1.toString("base64");//向字符串转换时，使用base64
//dXNlck5hbWU6IHpoYW5nc2FuIHB3ZDogMTIzNDU2